<?php include '_header.php' ?>

<div class="app d-flex">
    <div class="container mb-5 mx-auto">
        <h1 class="pt-5 pb-2">安装</h1>
        <ul class="steps d-flex justify-content-between list-unstyled mb-5">
            <li class="flex-fill text-muted done">
                <p>1</p>
                <p>准备</p>
            </li>
            <li class="flex-fill text-muted done">
                <p>2</p>
                <p>环境检测</p>
            </li>
            <li class="flex-fill fw-bold done">
                <p>3</p>
                <p>写数据库</p>
            </li>
        </ul>
        <form action="/install/submit" method="post">
            <table class="table table-striped mb-4">
                <thead>
                    <tr>
                        <th scope="col" colspan="2">目录权限检测</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>数据库地址</td>
                        <td><input type="text" class="form-control" name="host" id="host" value="localhost"></td>
                    </tr>
                    <tr>
                        <td>数据库名</td>
                        <td><input type="text" class="form-control" name="database" id="database"></td>
                    </tr>
                    <tr>
                        <td>用户名</td>
                        <td><input type="text" class="form-control" name="username" id="username"></td>
                    </tr>
                    <tr>
                        <td>密码</td>
                        <td><input type="text" class="form-control" name="password" id="password"></td>
                    </tr>
                    <tr>
                        <td>表前缀</td>
                        <td><input type="text" class="form-control" name="prefix" id="prefix"></td>
                    </tr>
                </tbody>
            </table>
            <div class="text-center">
                <button type="submit" class="btn btn-secondary rounded-pill">提交</button>
                <a href="/install/first" class="btn btn-light rounded-pill">上一步</a>
            </div>
        </form>
    </div>
</div>

<?php include '_footer.php' ?>